# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=py3-prawcore
pkgver=1.5.0
pkgrel=0
pkgdesc="a low-level communication layer for PRAW 4+"
options="net" # To fetch unpackaged test dependencies
url="https://github.com/praw-dev/prawcore"
arch="noarch"
license="BSD-2-Clause"
depends="py3-setuptools py3-requests"
checkdepends="py3-mock py3-betamax py3-betamax_matchers py3-betamax_serializers py3-testfixtures"
source="$pkgname-$pkgver.tar.gz::https://github.com/praw-dev/prawcore/archive/v$pkgver.tar.gz"
builddir="$srcdir/prawcore-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="6ee3191702cb6b1daf30763bd8fc1a919dc6820792c1a64399dc98f5986e33ee3e2a59286277e4232b5d58077d54e0cf444f9a0144dd7bad91286a57f2fe6a89  py3-prawcore-1.5.0.tar.gz"
